package com.mingren.utils;

import org.springframework.util.DigestUtils;

/**
 * @author 曹宏福
 * @version 1.0
 * 加密工具类
 */
public class encryptionUtils {

    private final static String SALT = "mingren";

    public static String getEncryptPassword(String userPassword) {
        return DigestUtils.md5DigestAsHex((SALT + userPassword).getBytes());
    }

}
